/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo923;

import java.lang.String;
import java.util.Random;

/**
 *
 * @author Administrator
 */
public class StringDemo {

    public static void main(String args[]) {
        String name = "li";
        String name1 = new String("li");
        String s = "abcd";
        String s2 = "bd";
        System.out.println(s.indexOf(s2));
        String names="zhang.li.wang";
        String ns[]=names.split("\\.");
        //String ns[]={"zhang","li","wang"};
        String nums="345,678,789";
        int x=600+Integer.parseInt("567");
        String sss= Integer.toBinaryString(65);
        System.out.println(sss);
        System.out.println(Math.random());
        System.out.println(Math.random());
        System.out.println(Math.random());
       int y=(int) (Math.random()*91)+10;
       System.out.print(y);
       Random random=new Random();
       System.out.println(random.nextInt(91)+10);
        
        
        
        
    }
}
